package com.data.modules.online.auth.vo;

import java.io.Serializable;

public class AuthPageVO implements Serializable {
    private static final long serialVersionUID = 724713901683956568L;
    private Boolean checked;
    private String code;
    private Integer control;

    private String f78id;
    private Integer page;
    private String relId;
    private String title;


    public boolean canEqual(Object other) {
        return other instanceof AuthPageVO;
    }

    public boolean equals(Object o) {
        if (o == this) {
            return true;
        }
        if (!(o instanceof AuthPageVO)) {
            return false;
        }
        AuthPageVO authPageVO = (AuthPageVO) o;
        if (!authPageVO.canEqual(this)) {
            return false;
        }
        Integer page2 = getPage();
        Integer page3 = authPageVO.getPage();
        if (page2 != null ? !page2.equals(page3) : page3 != null) {
            return false;
        }
        Integer control2 = getControl();
        Integer control3 = authPageVO.getControl();
        if (control2 != null ? !control2.equals(control3) : control3 != null) {
            return false;
        }
        Boolean checked2 = getChecked();
        Boolean checked3 = authPageVO.getChecked();
        if (checked2 != null ? !checked2.equals(checked3) : checked3 != null) {
            return false;
        }
        String id = getId();
        String id2 = authPageVO.getId();
        if (id != null ? !id.equals(id2) : id2 != null) {
            return false;
        }
        String code2 = getCode();
        String code3 = authPageVO.getCode();
        if (code2 != null ? !code2.equals(code3) : code3 != null) {
            return false;
        }
        String title2 = getTitle();
        String title3 = authPageVO.getTitle();
        if (title2 != null ? !title2.equals(title3) : title3 != null) {
            return false;
        }
        String relId2 = getRelId();
        String relId3 = authPageVO.getRelId();
        if (relId2 == null) {
            if (relId3 == null) {
                return true;
            }
        } else if (relId2.equals(relId3)) {
            return true;
        }
        return false;
    }

    public int hashCode() {
        int i = 43;
        Integer page2 = getPage();
        int hashCode = page2 == null ? 43 : page2.hashCode();
        Integer control2 = getControl();
        int i2 = (hashCode + 59) * 59;
        int hashCode2 = control2 == null ? 43 : control2.hashCode();
        Boolean checked2 = getChecked();
        int i3 = (hashCode2 + i2) * 59;
        int hashCode3 = checked2 == null ? 43 : checked2.hashCode();
        String id = getId();
        int i4 = (hashCode3 + i3) * 59;
        int hashCode4 = id == null ? 43 : id.hashCode();
        String code2 = getCode();
        int i5 = (hashCode4 + i4) * 59;
        int hashCode5 = code2 == null ? 43 : code2.hashCode();
        String title2 = getTitle();
        int i6 = (hashCode5 + i5) * 59;
        int hashCode6 = title2 == null ? 43 : title2.hashCode();
        String relId2 = getRelId();
        int i7 = (hashCode6 + i6) * 59;
        if (relId2 != null) {
            i = relId2.hashCode();
        }
        return i7 + i;
    }

    public void setChecked(Boolean checked2) {
        this.checked = checked2;
    }

    public void setCode(String code2) {
        this.code = code2;
    }

    public void setControl(Integer control2) {
        this.control = control2;
    }

    public void setId(String id) {
        this.f78id = id;
    }

    public void setPage(Integer page2) {
        this.page = page2;
    }

    public void setRelId(String relId2) {
        this.relId = relId2;
    }

    public void setTitle(String title2) {
        this.title = title2;
    }

    public String toString() {
        return "AuthPageVO(id=" + getId() + ", code=" + getCode() + ", title=" + getTitle() + ", page=" + getPage() + ", control=" + getControl() + ", relId=" + getRelId() + ", checked=" + getChecked() + ")";
    }

    public String getId() {
        return this.f78id;
    }

    public String getCode() {
        return this.code;
    }

    public String getTitle() {
        return this.title;
    }

    public Integer getPage() {
        return this.page;
    }

    public Integer getControl() {
        return this.control;
    }

    public String getRelId() {
        return this.relId;
    }

    public Boolean getChecked() {
        return this.checked;
    }

    public Boolean isChecked() {
        return Boolean.valueOf(this.relId != null && this.relId.length() > 0);
    }
}
